﻿
@{
    ViewBag.Title = "AddRole";
    Layout = "~/Views/Shared/_ryIndex.cshtml";
}

@section styles
{
    @Styles.Render("~/bundles/BootstrapTableCss")
    <link href="~/Content/static/ajax/libs/jquery-ztree/3.5/css/metro/zTreeStyle.css" rel="stylesheet" />
}

@section scripts
{
    @Scripts.Render("~/bundles/bootstraptablejs", "~/bundles/jqueryValidate", "~/bundles/treegridjs", "~/bundles/jqueryexportjs")

    <script src="~/Content/static/ruoyi/system/role/add.js"></script>
    <script src="~/Content/static/ajax/libs/jquery-ztree/3.5/js/jquery.ztree.all-3.5.js"></script>
}

<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-role-add">
            <div class="form-group">
                <label class="col-sm-3 control-label ">角色名称：</label>
                <div class="col-sm-8">
                    <input class="form-control" type="text" name="RoleName" id="roleName" />
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">权限字符：</label>
                <div class="col-sm-8">
                    <input class="form-control" type="text" name="Modifdon" id="roleKey">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">显示顺序：</label>
                <div class="col-sm-8">
                    <input class="form-control" type="text" name="Sort" id="roleSort">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">状态：</label>
                <div class="col-sm-8">
                    <div class="onoffswitch">
                        <input type="checkbox" class="onoffswitch-checkbox" id="status" name="DelFlag" checked="checked">
                        <label class="onoffswitch-label" for="status">
                            <span class="onoffswitch-inner"></span>
                            <span class="onoffswitch-switch"></span>
                        </label>
                    </div>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">备注：</label>
                <div class="col-sm-8">
                    <input id="remark" name="Remark" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">菜单权限</label>
                <div class="col-sm-8">
                    <div id="menuTrees" class="ztree"></div>
                </div>
            </div>
            <div class="form-group">
                <div class="form-control-static col-sm-offset-9">
                    <button type="submit" class="btn btn-primary">提交</button>
                    <button onclick="javascript:layer_close()" class="btn btn-danger" type="button">关闭</button>
                </div>
            </div>
        </form>
    </div>
</body>
